From: stekloff@elm3b216.beaverton.ibm.com Date: Fri, 19 May 2006 15:29:34 +0000 (+0100) Subject: This patch resizes the file system on the xm-test HVM disk.img to use X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16047^2~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9c8277a2d8bdfcd8022ba16b99dcbd1e3849beff;p=xen.git This patch resizes the file system on the xm-test HVM disk.img to use the entire space available. Signed-off-by: Daniel Stekloff --- diff --git a/tools/xm-test/ramdisk/bin/create_disk_image b/tools/xm-test/ramdisk/bin/create_disk_image index bde4b2dede..513af46d35 100644 --- a/tools/xm-test/ramdisk/bin/create_disk_image +++ b/tools/xm-test/ramdisk/bin/create_disk_image @@ -208,6 +208,13 @@ function dd_rootfs_to_image() if [ $? -ne 0 ]; then die "Failed to dd $ROOTFS to $LOOPP." fi + + # Resize fs to use full partition + e2fsck -f $LOOPP + resize2fs $LOOPP + if [ $? -ne 0 ]; then + die "Failed to resize rootfs on $LOOPP." + fi } function get_kernel()